﻿using Engine;
using Engine.Graphics;
using System;

namespace Game
{
	public class TerrainChunkGeometry
	{
		public TerrainChunk TerrainChunk;

		public class Buffer : IDisposable
		{
			public VertexBuffer VertexBuffer;

			public IndexBuffer IndexBuffer;

			public Texture2D Texture;

			public int[] SubsetIndexBufferStarts = new int[7];

			public int[] SubsetIndexBufferEnds = new int[7];

			public int[] SubsetVertexBufferStarts = new int[7];

			public void Dispose()
			{
				Utilities.Dispose(ref VertexBuffer);
				Utilities.Dispose(ref IndexBuffer);
			}
		}
	}
}